# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnet
pkgver=1.3
pkgrel=0
pkgdesc="A generic networking API that provides access to several protocols."
url="https://sourceforge.net/projects/libnet-dev/"
arch="all"
license="BSD-2-Clause"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://github.com/libnet/libnet/releases/download/v$pkgver/libnet-$pkgver.tar.gz"
options="!check"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-link-layer=linux
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c434327108b61e73b61acc5f2b346d049ab5d58e494db21971368eac733a9a0a3e9d95e0b4523c20629b02ed0feef086c50c582719635f21e980c440d55dd462  libnet-1.3.tar.gz
"
